#include "visit.h"


/*!
 *@brief 访问类型
 *@param node AST节点指针
 *@param s 符号表指针
 *@param bb 基本块指针
 *@return string -> 变量类型(int/float)

 */
string visit_bType(ASTNode *node, SymbolTable *s, BasicBlock* bb){
    if(!node) return "";
    ASTNode* btype = node -> children[0];

    return btype -> value;
}